package BLC

func GetBalance(address string)int{
	blockchain:=BlockChainObject()
	utxos:=blockchain.UnUTXOs(address)

	var amount int
	for _,utxo:=range utxos{
		amount+=utxo.Output.Value
	}

	return amount
}
